package com.itheima.d5_resourse;

public class Test1 {
    public static void main(String[] args) {
        try{
            System.out.println(10/2);
//            return;
            System.exit(0);//虚拟机挂掉
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            System.out.println("=========finally执行了一次");
        }
    }
    public static int chu(int a,int b){
        try {
            return a/b;
        }catch (Exception e){
            e.printStackTrace();
            return -1;
        }finally {
            System.out.println("finally执行");
            //不能return数据
        }
    }
}
